package cn.vihub.controller;


import cn.vihub.utils.Result;
import cn.vihub.utils.TestUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("shop-user/test")
public class TestController {

    @GetMapping("test1")
    public Result<String> test1(){
        String s = TestUtil.test1();
        // return Result.success(s);
        // return Result.error(-2, "token错误");
        // return Result.error();
        return Result.error("token错误");
    }
}
